dax: Avoid ABI change in 4.13.5
authorBen Hutchings <ben@decadent.org.uk>
Thu, 26 Oct 2017 20:16:38 +0000 (22:16 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 30 Oct 2017 15:32:11 +0000 (15:32 +0000)
commit9e89af305e0b03b78de9a3de57489789f7b09962
tree8eb4490414abc3bacf146081fc1ca2451ecf7b27
parent8935b846410d293a722ca7b1ccbe4b17c8b11805
dax: Avoid ABI change in 4.13.5

Commit c3ca015fab6d ("dax: remove the pmem_dax_ops->flush
abstraction") removed dax_operations::flush and
target_type::dax_flush, resulting in an ABI change.  Add these
operations back but don't restore any of the calls to them.  To keep
existing callers working during an incomplete kernel upgrade, change
all the implementations to directly do arch_wb_cache_pmem(), just as
dax_flush() does in the new kernel.

Don't change dax_flush() back; it shouldn't have any out-of-tree
callers.

Gbp-Pq: Topic debian
Gbp-Pq: Name dax-avoid-abi-change-in-4.13.5.patch
drivers/md/dm-linear.c
drivers/md/dm-stripe.c
drivers/md/dm.c
drivers/nvdimm/pmem.c
include/linux/dax.h
include/linux/device-mapper.h